﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PocketEngine.Images;
using PocketEngine.Engine;
using PocketEngine.Materials;
namespace PocketEngine.Maps
{
    public class pTile
    {
        public bool Blocker
        {
            get
            {
                return mBlocker;
            }
            set
            {
                mBlocker = value;
            }
        }
        private bool mBlocker = false;
        public pMaterial Material
        {
            get
            {
                return mMat;
            }
            set
            {
                mMat = value;
            }
        }
        private pMaterial mMat = null;
        public pTile()
        {
            mMat = new pMaterial();
        }
        public pTile(pAnimImage img)
        {
            AddVisual(img);
            mMat = new pMaterial();
        }
        public void AddVisual(pAnimImage vis)
        {
            Visual.Add(vis);
        }
        public float Height
        {
            get
            {
                return mHeight;
            }
            set
            {
                mHeight = value;
            }
        }
        private float mHeight = 12;
        public List<pAnimImage> Visual
        {
            get
            {
                return mVisual;
            }
            set
            {
                mVisual = value;
            }
        }
        private List<pAnimImage> mVisual = new List<pAnimImage>();

        public bool CastShadow
        {
            get
            {
                return mCastShadow;
            }
            set
            {
                mCastShadow = value;
            }
        }
        public bool mCastShadow = false;
        public bool TakeShadow
        {
            get
            {
                return mTakeShadow;
            }
            set
            {
                mTakeShadow = value;
            }
        }
        private bool mTakeShadow = true;
    }
}
